package com.springcloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@EnableAutoConfiguration(exclude= {/*
								   HibernateJpaAutoConfiguration.class,
								   SecurityAutoConfiguration.class,*/
		DataSourceAutoConfiguration.class,
		JpaRepositoriesAutoConfiguration.class //禁止springboot自动加载持久化bean
})

// 支持EurekaServer 服务的注册与发现
@EnableEurekaServer
@SpringBootApplication
public class SpringcloudApplication {
	private static final Logger LOGGER = LoggerFactory.getLogger(SpringcloudApplication.class) ;

	public static void main(String[] args) {
		SpringApplication.run(SpringcloudApplication.class, args);
		LOGGER.info("Eureka Server 服务注册中心启动成功！");
	}
}
